<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>删除标签的属性</title>
</head>
<body>
	<p id="text" align="center">文本</p>
	<script type="text/javascript">
		var p = document.getElementById("text");
		p.removeAttribute("align");
	</script>
</body>
</html>